package com.matou.commons.selector;


import com.matou.commons.configure.MaTouAuthExceptionConfigure;
import com.matou.commons.configure.MaTouOAuth2FeignConfigure;
import com.matou.commons.configure.MaTouServerProtectConfigure;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Author CM
 * @Date 2021/5/9 15:32
 * @Description CmCloudApplicationSelector
 * @Version 1.0
 */
public class MaTouCloudApplicationSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        System.out.println("load commons");
        return new String[]{
                MaTouAuthExceptionConfigure.class.getName(),
                MaTouOAuth2FeignConfigure.class.getName(),
                MaTouServerProtectConfigure.class.getName()
        };
    }
}
